package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * 用户点赞对象 likes
 *
 * @author AousVolad
 * @date 2024-07-05
 */

@Data
@ToString
public class Likes extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 文章ID
     */
    @Excel(name = "文章ID")
    private Long articleId;

    /**
     * 视频ID
     */
    @Excel(name = "视频ID")
    private Long videosId;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedAt;


    private Articles articlesList;
    private Videos videosList;

    /**
     * 用户删除标记
     */
    private String deletedFlag;
}
